#include "sort.h"

int sort_picked(int *a, int n)
{
    int i = 0;
    int j = 0;
    int min = 0;
    int position = 0;
	
    for(i = 0; i < n; i++)
    {
		min = a[i];
		position = i;
		for(j = i+1; j < n; j++)
		{
			if(a[j] < min)
			{
				position = j;
				min = a[j];
			}
		}
		a[position] = a[i];
		a[i] = min;
    }
    return 0;
}
